import axios from '../request/axios.js'

export const getQuestionList = () => {
  return axios({
    url: "/getQuestionList",
    method: "get"
  })
}

export const getTrainList = () => {
  return axios({
    url: "/getTrainList",
    method: "get"
  })
}

export const getMaintenanceInfo = () => {
  return axios({
    url: "/getMaintenanceInfo",
    method: "get"
  })
}

export const getTrainInfo = (id) => {
  return axios({
    url: "/getTrainInfo?id="+id,
    method: "get"
  })
}

export const getDownloadList = (data) => {
  return axios({
    url: "/getDownloadList?category="+data.category+"&page="+data.page+"&page_size="+data.page_size+"&keyword="+data.keyword,
    method: "get"
  })
}

